﻿namespace Skymate.Lyjt.Core
{
    using Abp.Dependency;

    public interface IProtocolAnalysis : ITransientDependency
    {
        byte[] Encry(byte[] buffer);

        byte[] EncryData(byte[] buffer);

        byte[] DecryptData(byte[] dataBuffer);

        bool CheckSumIsRight(byte[] dataBuffer, byte checkSum);

        byte[] Read(byte[] buffer);

        int GetReadDataLength(byte[] readBuffer);

        byte GetReadBufferCheckSum(byte[] readBuffer);

        byte GenerateChecksum(byte[] bytes);
    }
}